﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>跟进历史管理</title>
    <#include "../common/link.ftl">

</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <#include "../common/navbar.ftl">
    <!--菜单回显-->
    <#assign currentMenu="customerTraceHistory"/>
    <#include "../common/menu.ftl">
    <div class="content-wrapper">
        <section class="content-header">
            <h1>跟进历史</h1>
        </section>
        <section class="content">
            <div class="box">
                <!--高级查询--->
                <form class="form-inline" id="searchForm" action="/customerTraceHistory/list.do" method="post">
                    <input type="hidden" name="currentPage" id="currentPage" value="1">
                    <div class="form-group">
                        <label for="keyword">关键字:</label>
                        <input type="text" class="form-control" id="keyword" name="keyword" value="${qo.keyword!}" placeholder="请输入姓名/电话">
                    </div>
                    <@shiro.hasAnyRoles name="admin,Market,Market_Manager">
                    <div class="form-group">
                        <label for="dept"> 跟进类型:</label>
                        <select class="form-control" id="sellerid" name="sellerid">
                            <option value="-1">全部</option>
                            <option value="0">潜在客户</option>
                            <option value="1">正式客户</option>
                        </select>
                        <#--<script>
                            $('#sellerid').val(${qo.sellerid})
                        </script>-->
                    </div>
                    </@shiro.hasAnyRoles>
                    <button id="btn_query" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span> 查询</button>
                </form>
                <!--编写内容-->
                <div class="box-body table-responsive no-padding ">
                    <table class="table table-hover table-striped  table-bordered">
                        <tr>
                            <th>编号</th>
                            <th>姓名</th>
                            <th>跟进时间</th>
                            <th>跟进内容</th>
                            <th>跟进方式</th>
                            <th>跟进结果</th>
                            <th>录入人</th>
                            <th>跟进类型</th>
                            <th>操作</th>
                        </tr>
                        <#list result.list as customerTraceHistory>
                            <tr>
                                <td>${customerTraceHistory_index+1}</td>
                                <td>${(customerTraceHistory.customer.name)!}</td>
                                <td>${(customerTraceHistory.traceTime?string("yyyy-MM-dd"))!}</td>
                                <td>${(customerTraceHistory.traceDetails)!}</td>
                                <td>${customerTraceHistory.traceType.title!}</td>
                                <td>${customerTraceHistory.traceResultName!}</td>
                                <td>${(customerTraceHistory.inputUser.name)!}</td>
                                <td>${(customerTraceHistory.typeName)!}</td>
                                <td>
                            <@shiro.hasPermission name="classinfo:input">
                                <a href="#" class="btn btn-info btn-xs btn_redirect btn-input" data-json='${customerTraceHistory.json}'>
                                    <span class="glyphicon glyphicon-pencil"></span> 编辑
                                </a>
                            </@shiro.hasPermission>
                        <@shiro.hasPermission name="classinfo:delete">
                                <a href="#" class="btn btn-danger btn-xs btn_delete" data-id="${customerTraceHistory.id}">
                                    <span class="glyphicon glyphicon-trash"></span> 删除
                                </a>
                        </@shiro.hasPermission>
                                </td>
                            </tr>
                        </#list>
                    </table>
                    <!--分页-->
                    <#include "../common/page.ftl">
                </div>
            </div>
        </section>
    </div>
    <#include "../common/footer.ftl">
</div>
</body>
</html>
